package com.tmall.testgen.transfer.client;

import com.tmall.testgen.common.bo.interact.back.TransferCarFromServer;
import com.tmall.testgen.common.socket.ReceiveObjectHandler;
import com.tmall.testgen.common.socket.syn.SynCallBackCenter;
import com.tmall.testgen.common.socket.syn.SynObject;

/**
 * @author haojia
 * @date 2014-07-04
 */
public class TransferClientReceiveObjectHandler  implements  ReceiveObjectHandler  {

	@Override
	public void handleReceiveObj(Object receive) {
		
	    if(!(receive instanceof TransferCarFromServer)){
            return;
        }
        
        TransferCarFromServer car=(TransferCarFromServer) receive;
            
        if(car.getData() instanceof SynObject){
            SynCallBackCenter.getInstance().handleReceive((SynObject) car.getData());
            return;
        }
        
		
	}

}
